import { SET_URL } from '@/constants/web'

const INITIAL_STATE = {
  url: ''
}

export default function counter (state = INITIAL_STATE, action) {
  switch (action.type) {
    case SET_URL:
      return {
        ...state,
        url: action.data
      }
    default:
      return state
  }
}
